package com.hospital.doctor.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

//检查表
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CheckBody {
    //检查编号
    @ExcelIgnore
    private int cId;
    //病人编号
    @ExcelIgnore
    private int pId;
    //医生编号
    @ExcelIgnore
    private int dId;
    //检查时间
    @ExcelProperty(value = "检查时间",index = 1)
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    private Date cTime;
    //检查内容
    @ExcelProperty(value = "检查内容",index = 0)
    private String cContent;
    //注意事项
    @ExcelProperty(value = "注意事项",index = 2)
    private String ckAttention;
    @ExcelIgnore
    private Patient patient;
    @ExcelIgnore
    private Doctor doctor;


    public String getCkAttention() {
        return ckAttention;
    }

    public void setCkAttention(String ckAttention) {
        this.ckAttention = ckAttention;
    }

    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public String getcContent() {
        return cContent;
    }

    public void setcContent(String cContent) {
        this.cContent = cContent;
    }
}
